{% extends "base.html" %}
{% block body %}
{% import "macros.html" as macros %}
<div class="contact-info">

    <ol class="breadcrumb">
        <li><a href="{{ url_for('pic.home') }}">Home</a></li>
        <li><a href="{{ url_for('work.home') }}">Work</a></li>
        <li class="active">Work:{{ title }}</li>
    </ol>

    <div class="contact-grids">
            <ul class="list3">
                <li>
                    <div class="extra-wrap">
                        <h4 class="label label-{% if page.priority == 1 %}default
                                                  {% elif page.priority == 2 %}warning
                                                  {% else%}danger
                                                  {% endif %}">{{page.title}}</h4><br><br>

                        <p style="font-size:0.5em; color:#ccc">Create: {{page.create_time}}
                            {% if page.update_time %}<br>Update: {{page.update_time}}{% endif %}</p>

                        <p class="work_page">
                            {{page.content_br() | safe}}
                        </p>

                    </div>
                    <a href="{{url_for('work.work_page_edit', page_id=page.id)}}" class="btn btn-default btn-sm pull-right">修改</a>
                </li>
            </ul>

        <div class="clear"></div>

    </div>
</div>
{% endblock %}

{% block script %}
<script type="text/javascript">

</script>
{% endblock %}